package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 员工实体对象
 */
@TableName("t_em")
public class EmployeeBean {
    /**
     * 员工id
     */
    @TableId(value = "pk_emId", type = IdType.AUTO)
    private Integer emId;
    /**
     * 员工账号
     */
    @TableField("e_name")
    private String name;
    /**
     * 员工密码
     */
    @TableField("e_pwd")
    private String pwd;
    /**
     * 员工姓名
     */
    @TableField("e_relName")
    private String relName;
    /**
     * 员工所在部门
     */
    @TableField("e_dept")
    private String dept;
    /**
     * 员工职位
     */
    @TableField("e_position")
    private String position;

    public EmployeeBean() {
    }

    public Integer getEmId() {
        return emId;
    }

    public void setEmId(Integer emId) {
        this.emId = emId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getRelName() {
        return relName;
    }

    public void setRelName(String relName) {
        this.relName = relName;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    @Override
    public String toString() {
        return "EmployeeBean{" +
                "emId=" + emId +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", relName='" + relName + '\'' +
                ", dept='" + dept + '\'' +
                ", position='" + position + '\'' +
                '}' + "\n";
    }
}
